package main

import (
	"fmt"
	ll "linkedlist"
)

func main() {
	head := ll.BuildLinkedList(1, 2, 3)
	ll.Print(head)

	nums := []int{3, 2, 1}
	head2 := ll.Slice2LinkedList(nums)
	ll.Print(head2)

	slice := ll.LinkedList2Slice(head2)
	fmt.Println(slice)
}
